//
//  MIDICertificationCell.m
//  MIDI
//
//  Created by 千行时线 on 15/9/12.
//  Copyright (c) 2015年 QXSX. All rights reserved.
//

#import "MIDICertificationCell.h"
#import "MIDICertificationLineCell.h"
@interface MIDICertificationCell()<UITableViewDataSource,UITableViewDelegate>



@end


@implementation MIDICertificationCell


+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"MIDICertificationCell";
    MIDICertificationCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        
        cell = [[[NSBundle mainBundle] loadNibNamed:ID owner:nil options:nil]firstObject];
        
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return cell;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 11;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 23;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    MIDICertificationLineCell *cell = [MIDICertificationLineCell cellWithTableView:tableView];
    NSInteger index = indexPath.row;
    
    if (index == 0)
    {
        [cell setData:@"姓  名：":@"黄晓明"];
    }
    else if(index == 1)
    {
        [cell setData:@"性  别：":@"男"];
    }
    else if(index == 2)
    {
        [cell setData:@"国  籍：":@"中国"];
    }
    else if(index == 3)
    {
        [cell setData:@"民  族：":@"汉族"];
    }
    else if(index == 4)
    {
        [cell setData:@"出生日期：":@"1990-01-01"];
    }
    else if(index == 5)
    {
        [cell setData:@"迷笛 ID：":@"123456789"];
    }
    else if(index == 6)
    {
        [cell setData:@"考级专业：":@"电吉他"];
    }
    else if(index == 7)
    {
        [cell setData:@"等  级：":@"等级1"];
    }
    else if(index == 8)
    {
        [cell setData:@"发证日期：":@"2015-07-21"];
    }
    else if(index == 9)
    {
        [cell setData:@"起 止 级：":@"1-9级"];
    }
    else if(index == 10)
    {
        [cell setData:@"证书编号：":@"20154263658"];
    }

    return cell;
}

@end
